#ifndef MYIMAGEPROVIDER_H
#define MYIMAGEPROVIDER_H

#include <QObject>
#include <QQuickImageProvider>
#include "components/opencv_camera/opencv_camera.h"

class MyImageProvider : public QQuickImageProvider
{
public:
    MyImageProvider();

    void setCameraInstance(opencv_camera *camera);
    QImage requestImage(const QString &id, QSize *size, const QSize &requestedSize);
private:
    opencv_camera *m_camera;
};

#endif // MYIMAGEPROVIDER_H
